Q3Storage_SetData
You can use theQ3Storage_SetData
function to set the data stored in a storage object.
TQ3Status Q3Storage_SetData ( TQ3StorageObject storage, unsigned long offset, unsigned long dataSize, const unsigned char *data, unsigned long *sizeWritten);
storage
- A storage object.
offset
- An offset into the specified storage object.
dataSize
- The number of bytes of data from the specified buffer to be written to the specified storage object.
data
- On entry, a pointer to a buffer that contains the data you want to be written to the specified storage object.
sizeWritten
- On exit, the number of bytes of data written to the specified storage object.
DESCRIPTION
TheQ3Storage_SetData
function sets the data associated with the storage object specified by thestorage
parameter to the data specified by thedataSize
anddata
parameters. The data is written to the storage object starting at the byte offset specified by theoffset
parameter.Q3Storage_SetData
returns, in thesizeWritten
parameter, the number of bytes of data written to the storage object. If the value returned in thesizeWritten
parameter is less than the number of bytes requested in thedataSize
parameter, then the end of the storage object's private data occurs at the distanceoffset
+sizeWritten
from the beginning of the private data.